/*
preferences.h
(c) 2010 Yury Hamenkov
This file is part of qWordCards.

qWordCards is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

qWordCards is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with qWordCards. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef PREFERENCES_H
#define PREFERENCES_H

#include <QWidget>
#include <QList>
#include <QMap>
#include <QFont>
#include <QColor>
#include <QTranslator>
#include "wordslist.h"


namespace qWordCards {
	class Preferences {
	public:
		// Main
		static bool firstTime;
		static int wordShowDuration;
		static int wordChangeInterval;
		static int showTranslationInterval;
		static unsigned short int  wordsQueueLength;
		static unsigned short int favouriteWordProbability;

		// Appearance
		static QFont wordFont;
		static QFont transcriptionFont;
		static QFont translationFont;
		static QColor wordColor;
		static QColor transcriptionColor;
		static QColor translationColor;
		static bool showToolbar;
		static QColor mainWindowBackColor;
		static QPoint mainWindowPosition;
		static QSize mainWindowSize;
		
		// Words lists
		static WordsList forbiddenWords;
		static WordsList favouriteWords;
		static WordsList suspendedWords;

		// Translator. Not done yet
		static QTranslator* currentTranslator;

		static void Save();
		static void Load();
		static void Defaults();

	private:
		Preferences() {}
		~Preferences() {}
	};
}
#endif // PREFERENCES_H
